package main

import (
	"fmt"
	"net/http"
	"os"
)

func main() {
	http.HandleFunc("/", hello)
	fmt.Println("listening...")
	err := http.ListenAndServe(":"+os.Getenv("PORT"), nil)
	if err != nil {
		panic(err)
	}
}

func hello(res http.ResponseWriter, req *http.Request) {
	fmt.Fprintln(res, "Hello! This is a Golang test!,If you can see this page, it means that git@osc deployed to mopaas normal function. In addition, procedures for the use of the code are for example code, has a certain reference, and there is no copyright, piracy does not study ")
}
